<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use Webman\Route;
use app\controller\Index;
use App\controller\OrderApi;
use app\controller\BoxOrderApi;
use App\controller\BlackHoleApi;
use App\controller\GoodsComposeApi;

Route::group('orderApi', function () {
    Route::post('create', [OrderApi::class, 'create']);
    Route::get('test', [OrderApi::class, 'test']);
})->middleware(\App\middleware\AccessControl::class);

Route::group('boxOrderApi', function () {
    Route::post('create', [BoxOrderApi::class, 'create']);
    Route::get('test', [BoxOrderApi::class, 'test']);
})->middleware(\App\middleware\AccessControl::class);

Route::group('blackHoleApi', function () {
    Route::post('dropSubmit', [BlackHoleApi::class, 'dropSubmit']);
    Route::post('dropBoxSubmit', [BlackHoleApi::class, 'dropBoxSubmit']);
})->middleware(\App\middleware\AccessControl::class);

Route::group('goodsComposeApi', function () {
    Route::post('composeSubmit', [GoodsComposeApi::class, 'composeSubmit']);
    Route::get('jmeterComposeSubmit', [GoodsComposeApi::class, 'jmeterComposeSubmit']);
})->middleware(\App\middleware\AccessControl::class);



